package com.zp.business.entity.register.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 挂号收费类型表业务对象
 *
 * @author zhang peng
 * @ date 2023-12-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RegisterPayTypeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 门诊记录ID
     */
    @NotBlank(message = "门诊记录ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String clinicId;

    /**
     * 费用支付类型
     */
    @NotBlank(message = "费用支付类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 费用
     */
    @NotNull(message = "费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal cost;

    /**
     * 核算科目
     */
    private String subjCode;

    /**
     * 结账号
     */
    private String acctNo;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 支付类型名称
     */
    private String typeName;

    private String delFlag;

}
